Formula for Pswitching updated