calculate forward and trailing pe ratio in an alternate way to check their accuracy