The target date is treated as midnight UTC; the difference to right now is split into whole units:
Days = ⌊minutes ÷ 1440⌋ · Hours = ⌊(minutes mod 1440) ÷ 60⌋ · Minutes = minutes mod 60
Because a date has no time-of-day, the countdown runs to midnight at the start of your target date.