If you hold a position in an index or underlying stock on the ex-dividend date, your account balance will be dividend-adjusted according to the formula Cd = Q x D, where Cd is the dividend and Q is the number of shares held, D is the amount of dividends per share (the amount of dividends per share after tax at the time of purchase).
Such adjustments will be calculated based on the size of the dividend, the size of your position, taxes, and whether it is a buy or sell transaction. If you hold a long position, the dividend adjustment will be in your favor (the dividend amount will be credited to your account balance). If you hold a short position, the dividend adjustment is credited to our company (the amount of the dividend will be deducted from your balance).