Define block to calculate gross amount with fees