sundayChecker function