Like in Excel, in Sharepoint using nested IFs in calculated value formula is limited to 7 levels.