Use chrono::duration instead of calculation.