[PLAT-5028] Calculate period from OIS leg if not correctly set.