Calculate modded prot value.