This simple online calculator gives a vertical object shadow length for specified day and geographic coordinate. The calculator uses Sun position
algorithm to calculate sun altitude.
Then it uses this formula to calculate shadow length:
- object height,a
- angle between Sun and horizon.
The calcultor gives zero result if there is no shadow. As you know, this may happen at night time :).