The method
Size a tankless heater by two figures (US Department of Energy): the flow of every fixture that may run at the same time, added up, and the temperature rise, which is the hot water you want less the water coming in. The heater has to deliver that flow at that rise.