sorry if this question sounds basic.
Basically I'm creating a P2P network and need to know how long it takes for data to be distributed through the entire network.
This has been my thought process so far:
Each node has it's own list of peers, they randomly select five peers to share data with every five minutes. This means that they could randomly select a peer that already has the data when distributing new data.
In order to calculate how many nodes data has been distributed so far I used:
$$\sum_{i=0}^n 5^i \left(\frac{p-5^{i-1}}{p}\right)$$
n is the number of five minute cycles.
p is the number of peers on the network.
I can't seem to figure out, with my pre-calc level (11th grade) math skillz how to know from just the number of peers how long it takes for the data to be completely distributed through the network. Currently I have to know how many cycles, which isn't exactly useful. Any help would be appricated.