implement make change calculation