updated RC Formula

Solves for all variables