What does a portfolio rebalancing calculator do?
It compares what each holding is worth now with the weight you want it to have, and shows the dollar amount to buy or sell of each so the portfolio matches your targets. It also checks that the trades reconcile with your cash.