added a time_format flag that can now handle AM PM time formatting in start time and end time calculation when given as 'True'