Reference to this: https://github.com/imapp-pl/gas-cost-estimator/blob/master/docs/report_stage_iii.md#analysis-4