To implement such calculator, I'd have to edit your theme or changes could be done via child-theme.
The prices will be generated as dynamic order meta fields together with product dimensions.
So in backend, when you check order details, you'll see all details.
If you are interested in my help, you may contact me via private chat to discuss all details.
Br,
Serhii, wp-developer from Ukraine