Adds startofweek function for weeks