When calculating the Swap rates, you will need to factor in the Number of nights, in which the swap rates were applied. Don’t forget that on Wednesday night the charges are for 3 days instead of 1 (EightCap’s triple swap is charged on Wednesday, with the exception of Monday for CFDs on stocks and Friday for CFDs on indices). This is required due to weekend holding.
Let’s assume your trade was opened on Monday and closed on Thursday. This makes 5 nights, not just 3.
Note: The swap rates may change from day to day and this should be accounted for. If the swap rate is different every day, calculate each day separately and then add them up.