FIX:Add the calculate method