Updated portal level formula