contrib: introduce `refund` calculator