All dimensions must be based on external measurements of the building or structure involved and not internal measurements.
These calculators are based on standard building shapes.
They should be used with care if the building you are measuring involves a combination of these forms or differs in a significant way from those in the calculator.
If in doubt seek advice from a qualified person or your local planning authority.