Complete resistance equation model .
- contains hard coded factor issues
- need to add input dialog to fix this