It all depends on whether each packet is the same length and whether each link has the same transmission rate.  In your formula they would need to be the same.  If they are all the same, then your formula looks OK.