Command-line hacking: creating a tide table

from blog Kevin Boone's website, | ↗ original
How to use Bash shell arithmetic to create a simple tide table