C
|
cgphp 7/11/2013 |
The calculation is wrong because the code above is an approximation. For example, there are months with 30 days and months with 31 days but you are considering only the ones with 30 days. |
O
|
onlline author 7/11/2013 |
The calculation is wrong because the code above is an approximation. For example, there are months with 30 days and months with 31 days but you are considering only the ones with 30 days.
|
![]() |
Sergey Kornilov admin 7/11/2013 |
You are forgetting the fact that some months have more than 30 days. |
O
|
onlline author 7/11/2013 |
You are forgetting the fact that some months have more than 30 days. Your calculation is incorrect, instead of getting 11 months you get 12 months and this is what makes the end result look wrong.
|
![]() |
Sergey Kornilov admin 7/11/2013 |
Check this article: |