Pricing variations nb of person / nb of hours

I would like the price of a service to vary depending on both the number of persons and the number of hours.