Time Calculator

great, now it works haha, whas about the format, thx, and just one more thing please, why is this one not working?
Expected period to change from AM to PM at 12:00
is the only one left

Running add_time("11:59 AM", "0:01") you get 12:00 AM, so I guess there is something to fix in your logic