N.B. The code for this calculator was written by a dog bed designer with part of an electronic engineering degree ( abandoned circa 1970 ) and not a proper programmer.
It does the job, but you might have to give it a couple of thumps to get it going.
Dog Bed Calculator
IMPORTANT! Please measure in centimetres, if you use millimeters or inches, the answer will be wrong.