based on BABYPIPS here's the formula 'For forex, here's the formula to calculate swap: Swap = (Pip Value * Swap Rate * Number of Nights) / 10. Pip value: $1. Swap (long) rate: -3.3154. Swap fee: (1* -3.3154 * 1) / 10 = -$0.33.'
If i were you use this and go to chatgpt to help you as well