It all depends on whether each packet is the same length and whether each link has the same transmission rate.  If they are only giving you 1 variable for number of links (N) and one variable for number of packets (P), then I guess we can assume that is the case.  One thing to confirm, is P the number of packets sent over a single link?  If so, the formula looks OK.