math logic added

completed logic for project controller
Merge pull request #1 from danbonilla/math_logic

math logic added