Added ceil function for weeks