<t>ljcao,Both legs are calculated with the unconditional distributions. The PD is the probabability that losses are in bucket K, therefore, to calculate the premium leg, I use PD x remaining principle x Discount factor x YearFrac to take the expectation. For the Default Leg, its i bit more involved....