Lets consider the simple interest rate swap instrument as 5-year maturity interest rate swap. I found an interesting simplification to calculate the duration of such swap as,
$\frac{\left(1 - e^{-r_t * T}\right)}{r_t}$
In above expression the $r_t$ is current level of interest rate and $T$ is the swap maturity i.e. in this case 5.
Could you please help to obtain explanation how the duration
is an interest rate swap looks like this? Also, is such approximation is applicable only naive fixed vs floating
interest rate swap?