Yeah... No... If it started with less than 28 or withdrew less than 28 (maybe the bank didn't have 28 remaining), it'll just be left standing there.
@@PlagueDoctor
If I were you, I would check if the inventory contains the grimy type herb. If it does, proceed to get its slot, make an InventorySlotDestination out of it (it's documented in the API), and click on the InventorySlotDestination. Then return how much you want to sleep for (maybe 50-150ms).