Forget about feet and inches. With metric, it couldn't be easier. Assuming you have a calculator, it's simple. Just divide any real-world measures (in meters for example) by 87, and you get the model length in HO, also in meters. Multiply the result by 100 to get cm, by 1000 to get mm.
1m...