Implemented rounding to nearest 5 minutes