Java solution
\nclass Solution {\n    public int numberOfRounds(String startTime, String finishTime) {\n        String s[] = startTime.split(":");\n        int sh = Integer.p
```\nclass Solution {\n    public int numberOfRounds(String startTime, String finishTime) {\n        String s[] = startTime.split(":");\n        int sh = Integer.parseInt(s[0]), sm =  Integer.parseInt(s[1]);\n        String f[] = finishTime.split(":");\n        int fh = Integer.parseInt(f[0]), fm =  Integer.parseInt(f[1]);\n        int res = 0;\n        if(sh > fh || (sh==fh && sm>fm))\n            res = computeRounds(sh,sm,23,60) + computeRounds(0,0,fh,fm);\n        else\n            res = computeRounds(sh,sm,fh,fm);\n        return res;\n    }\n    \n    int computeRounds(int sh,int sm,int fh,int fm){\n        int r = 0;\n        if (sh!=fh){\n            r = Math.max(0, (fh-sh-1)*4) + (60-sm)/15 + fm/15;\n        }\n        else\n            r = Math.max(0,fm/15-sm/15-(sm%15==0?0:1));\n        return r;\n    }\n}\n```
[]