Extra Charges in Purchase invoice

Hello All,
How can I add Extra Charges like freight, custom Duty Before Calculate Rate* Qty I Want to Add this Charges in the Rate and then Multiply with Qty