The formula for the interest rate parity is the following:
Forward rate= (spot rate*(1+ foreign interest rate)/(domestic interest rate).
There are certain assumptions that need to be true for this equation to hold true though (such as complete markets etc.)