debugged calculator code, hooked up calculate function in campaign details