Code for finding change