updated set_charged_amount method