Why rollup fees have two parts
A rollup transaction pays an execution fee on the rollup (its gas used times the rollup’s gas price) and an L1 data fee for its share of the data the rollup posts to Ethereum. The comparator calculates the execution part from each network’s live public RPC; because the data fee depends on the transaction’s size and current blob prices, you can add your own estimate for it.
Gas units are not always identical across networks for the same action, so treat the result as a like-for-like illustration rather than a quote. See blob fees and data availability for how the data fee is set.