redefined weeks and days and added the average