added ceil function for weeks