The NDF contract is (spot rate-quoted currency X per dollar) x * dollar. Count the number of days divided by 360 and divide that number by the currency's interest rate to get the number of days divided by the currency's interest rate. (number of days/360)