How to configure a calendar for shift roster

You change the working days in the calendar properties. What I’m want to do is customise the working days for shift roster working days. Does anyone know how to customise a calendar for shift rosters.

Given an example:

4 teams, rotating shifts doing day/night shifts. Each team does 7 days and 7 night shifts spread across 28 days. note each team starts the 28 days cycle on different days.