This document summarizes an approach for computing the optimal control law of linear time-invariant and time-varying systems with time delays using orthogonal functions. The approach uses block-pulse functions and shifted Legendre polynomials to represent system variables and express delay differential equations as algebraic equations. This allows the optimal control problem to be solved as an algebraic equation problem. Numerical examples are provided to demonstrate the approach. The approach provides a unified method for computing optimal control of multi-delay systems using orthogonal functions.