I’m not sure there’s an easy way to calculate those values from the using cleos. You’ll most likely need some sort of supplemental library to do the calculations before performing those actions on the command line.
We created a javascript library to help with those calculations, which I believe could be used on the command line in conjunction with cleos or another tool - but none are directly integrated and would likely require wrapping it all in some sort of shell script. If you were to perform the entire transaction in Javascript (creating, calculating, and signing in a single js file), that’d likely work as well.
(I know I responded to you on Telegram, responding here as well for SEO purposes)