I wrote this small programm to calculate the mutliblock machine parts i need to the LazyAe2 mod (the Mass-Assembler).
This is a javafx application where you can put in the width and the height of the block. I made it, so that the cobe is a square.
If you have opencomputers installed, here is the code for lua: Lua-Code.