There are two seperate online calculators available.
Number 1: Heat Inputs, Ventilation, Purging.
Number 2: Domestic Pipe Sizing Calculator for Natural Gas, LPG, Butane in Copper, Steel or PE Pipe