[Python + Java] (Convert to minutes)
Python\npython\nclass Solution:\n    def numberOfRounds(self, startTime: str, finishTime: str) -> int:\n        def convert(s):\n            return int(s[:2])*6
**Python**\n```python\nclass Solution:\n    def numberOfRounds(self, startTime: str, finishTime: str) -> int:\n        def convert(s):\n            return int(s[:2])*60+int(s[3:])\n        \n        st = convert(startTime)\n        ft = convert(finishTime)\n        \n        if ft < st:\n            ft += 1440\n        \n        if st % 15 != 0:\n            st += 15-(st%15)\n \n        return int((ft-st)/15)\n\n```\n---\n\n**Java**\n```java\nclass Solution {\n    int convert(String s){\n        String[] ss = s.split(":");\n        return (Integer.parseInt(ss[0])*60) + (Integer.parseInt(ss[1]));\n    }\n    \n    public int numberOfRounds(String startTime, String finishTime) {\n        int st = convert(startTime);\n        int ft =convert(finishTime);\n        \n        if (ft < st){\n            ft += 1440;\n        }\n        if (st % 15 != 0){\n            st += (15-st%15);\n        }\n        return (ft-st)/15;\n        \n    }\n}\n\n```
[]