simplified tidal math.  renamed a variable for consistency with eqns out there.