There are no simple, single formulae, but you need the boiler to feed the cylinders at its optimum rate, not flat-out.
Whole text-books were written for the trade and university engineering-courses in this area!
You need work back from theoretical steam consumption in the cylinders at maximum power – not at all easy to assess accurately due to largely-unquantifiable losses. The power depends on swept volume and cut-off, hence mean effective cylinder pressure, and speed; even before you try to consider steam lost in the clearance volumes and heat losses. In full-size practice this often entailed using a so-called "Diagram Factor", a multiplier of <1 of the theoretical Indicated Horse-Power, largely derived from analysing tests on actual, similar engines.
So that's how much water to boil….
It is relatively easy from physics and heat-engine design texts, to calculate the amount of heat to evaporate a given weight of water at the required pressure in a given time from fuel of known mean calorific value; but you also need calculate the boiler for optimum combustion, heat transfer, superheat (if used), etc.
And a boiler is not very thermally efficient, so one rated purely on calorific value, specific heat, temperature and pressure sums is not likely to keep up with the engine.
There are practical calculations in the model-engineering literature for e.g., grate-area / tube proportions; but greatly simplified from the Nature whom LBSC used to say is non-scaleable. They work, but most are based on miniature locomotive performance; and if you look at the IMLEC reports, the winning efficiency is the least worst value!
Possibly the easiest way it to try to compare existing designs; but the basic rule is that you need supply much more heat than expected to give the engine the steam it demands..