analogRead of analogWrite

Why RMS? You have no negative components.

Besides, you know what duty cycle you wrote.