Go from "09.30aM" to 570

0. convert time to upper case
1. split using "."
2. get hour as an integer, minute as an integer, ampm as a string

use conditional statement(s)
60 * hour + minute
works for 1.00 am till 11.59 am

60 * hour + minute + 720
works for 1 p.m. till 11.59 pm

12 am to 12.59 am formula??

12 pm to 12.59 pm formula??

return result



Go from mins = 570 to "09.30aM"

< 720 is AM  AND >= 720 PM

hour = mins // 60 # add 12 if hour is 0

minute = mins % 60 # if minute < 10 do not forget to add a 0 in front