The simple formula
The core formula is simple: required staff equals workload divided by usable employee time. Workload is whatever your team handles, calls, tasks, appointments, customers, tickets, rooms. Usable time is what is left after breaks, meetings, leave, and other shrinkage are taken out.
Then sanity-check against skills and minimum coverage. The workload might say four people, but if one role has to be present at all times, the real answer is five.
Forecast the work for the shift
Estimate average time per unit of work
Calculate productive time per employee
Add breaks, absence, and shrinkage
Check role and skill minimums