I am trying to convert a total amount of X days into X amount of weeks in C++, this is what I've seen done online and is not working:
int weeks = ((days % 365) / 7);
For example, if days = 8, then technically it is onto week 2 so int weeks should be = 2. Similarly 15 days should output 3.
Thanks.