Proper water heater sizing in any application hinges primarily on user consumption within a given period. That much is probably obvious, even to someone who has never sized a water heater.
What complicates matters, especially in a large commercial application, is the cadence of that usage. Is demand relatively constant over the course of a day? Or does it spike from time to time? And if it does, how dramatic and frequent are all those spikes?