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