How are refunds calculated?