Finding RSI value of specific price point


I am using 14 period rsi for entry and exit.

How to find rsi value of intra day high and as well as intraday low.

Price actual close may be some were below high or some were above low of the candle .
But we assume high as the that particular bar close instead of actual close.
Any idea to write afl for above.