Ask coding questions

← Back to all posts
The math doesn't add up...

It does calculate without any error messages, but if I type my age (24) and then take the weeks (4392 weeks) and turn them into years, then it will add up to 84 years. But I should get 66 years, which are 3443,something weeks.

Why doesn't it add up?? Where did my code go wrong?

Edit: I found it myself. Sorry for opening a post. I looked forever, and only now found it after I took a little pee break.

For anyone wondering: I used to subtract months from weeks....