updated calculation of amount sent