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.

Number of notes
Notes available 2000 500 100 20 10 5 1