As per Rule 115 of the Income tax rule Exchange rate is decided as follows- the last date of the preceding month in which such capital gain is incurred. For example, if you sold shares on 15th Mar 2024, Then you need to use the 29th Feb 2024 exchange rate.Such exchange rate will be multiplied by the capital gain (U.S.D) to convert the value to INR.