You can enter the bill amount and the cash you give to the shopkeeper and then check the minimum number of notes you will receive back.