Quickly calculate when it's time to leave or when something will be over.
Because the calculation of clock times is a bit cumbersome. At least if it is not carried out regularly.
Here, I want to be somewhere at 19:30 and have three things to do that take 20, 10 and 15 minutes:
$ ./timecalc.sh 19:30 -20 -10 -15
19:30
19:10 -00:20
19:00 -00:10
18:45 -00:15
18:45
So I have to start at 18:45.
Here, I want to know when I will be home after a movie that takes 128 minutes and starts at 20:00:
$ ./timecalc.sh 20 128 20
20:00
22:08 02:08
22:28 00:20
22:28