fixed unit conversion issue for spin parameter calculation