A Nonlocal Mixing-Length Theory of Convection for Use in Numerical Calculations