How to calculate the number of tiles needed to tile a staircase

Do you need help?