Python Medium
\nclass Solution:\n    def numberOfRounds(self, loginTime: str, logoutTime: str) -> int:\n        \'\'\'\n        00:00\n        00:15\n        00:30\n        0
```\nclass Solution:\n    def numberOfRounds(self, loginTime: str, logoutTime: str) -> int:\n        \'\'\'\n        00:00\n        00:15\n        00:30\n        00:45\n        01:00\n\n        loginTime time in \n        logoutTime time out\n\n        if loginTime > logoutTime, that means you played through the night\n\n        return number of FULL rounds\n        \n        \'\'\'\n        arr = loginTime.split(":")\n        # print(arr)\n        minutes = 0\n        minutes += int(arr[1])\n        minutes += int(arr[0]) * 60\n\n        arr2 = logoutTime.split(":")\n        # print(arr2)\n        minutes2 = 0\n        minutes2 += int(arr2[1])\n        minutes2 += int(arr2[0]) * 60\n\n        \n\n        if minutes <= minutes2:\n            while minutes % 15 != 0:\n                minutes += 1\n\n            return max(0, (minutes2 - minutes) // 15)\n\n        else:\n            # minutes > minutes 2\n            while minutes % 15 != 0:\n                minutes += 1\n\n            return max(0, ((minutes2 + 24 * 60) - minutes) // 15)\n\n       \n        \n```
['Python3']