made calculation changes

made calculation changes and still have NaN error