Implemented calculate method
Added third party workaround