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:
h - 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 :).
You may also clculate the shadow growth during the whole day using the calculator below: