Split previous week function