Multiply by 52.
There are 52 weeks in a year so you simply divide the number of weeks by 52 to convert them into years. For example 26 weeks becomes 0.5 years and 156 weeks becomes 3 years.
Since a year has 52 weeks, you can convert the years to weeks, then add all weeks for the total. For example: 5 years + 11 weeks = (5 years x 52 weeks) + 11 260 + 11 = 271 weeks Another example: 18 years + 26 weeks = (18 years x 52 weeks) + 26 weeks = 936 + 26 = 962 weeks
1 year = 52 weeks 1 day 2 years = 104 weeks 2 days 3 years = 156 weeks 3 days 4 years = 208 weeks 4 days plus 1 leap day 5 years = 260 weeks 6 days
A year has approximately 52 weeks; you can multiply by that number to get an approximation. Or, if you need more accuracy, convert the years to days, then divide by 7.
#include<iostream> void num_to_years_weeks_days( unsigned num, unsigned& years, unsigned& weeks, unsigned& days) { years = num / 365; num -= years * 365; weeks = num / 7; num -= weeks * 7; days = num; } int main() { unsigned years, weeks, days; unsigned num = 1000; num_to_years_weeks_days(num, years, weeks, days); std::cout << num << " days is " << years << " years, " << weeks << " weeks and " << days << " days\n" << std::endl; num = 12345; std::cout << num << " days is " << years << " years, " << weeks << " weeks and " << days << " days\n" << std::endl; }
22 weeks.
To convert 7 years and 22 weeks to days, first calculate the total days in 7 years (365 days/year * 7 years) and the total days in 22 weeks (7 days/week * 22 weeks). Then add these two totals together to get the final result, which is the total number of days in 7 years and 22 weeks.
80,740 minutes are in 8 weeks.
224/7 = 32 weeks
Divide by 604800
There is not an exact number of days in a month and therefore weeks in a month. So the best way is to convert to years (52 weeks in year) and then multiply by 12 (months in a year)(123/52)*12 = 28.38461538461538 months.
there are 211 weeks in 4 years and 3 weeks