Tested function

calculation works at 10:10am, setting conditional statements next