Fixed datatype for end time to be int