Created total_time_spent function
Created total_time_spent function with month, 6 months, etc as possible parameters