This function takes a date and returns the date of the last day of the corresponding week (with monday considered the first day and sunday the last day).