---
title: "Discussion on \"Your Time Math Is Wrong: Why Hours and Minutes Break Your Code\" | Hashnode"
description: "Discussion on \"Your Time Math Is Wrong: Why Hours and Minutes Break Your Code\". Subtracting two times looks like the easiest code you will write all week. A shift starts at 9:30 and ends at 17:45, so the answer is 8 hours and 15 minutes. Any developer can do that in their head, w"
url: "https://hashnode.com/posts/your-time-math-is-wrong-why-hours-and-minutes-break-your-code/6afa9c8df3fb5ef3cc189665"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Your Time Math Is Wrong: Why Hours and Minutes Break Your Code](https://handynest.hashnode.dev/your-time-math-is-wrong-why-hours-and-minutes-break-your-code?utm_source=hashnode&utm_medium=feed)

Subtracting two times looks like the easiest code you will write all week. A shift starts at 9:30 and ends at 17:45, so the answer is 8 hours and 15 minutes. Any developer can do that in their head, w

3d ago · 6 min read · handynest.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#time](https://hashnode.com/tag/time)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Muhammad Imran](https://hashnode.com/@muhammadimran)

@muhammadimran

  
[View profile](https://hashnode.com/@muhammadimran)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
