Code for Pool Tab.

Code added for calculator logic on pool tab.