Correct me if my math is wrong, but it seems that 2pT12 will provide a boost of 608.7 mp5 assuming 8xtick riptides.
Assumed Values
Ideal conditions.
1% of base mana = 234.3
5 min. fight.
So, first of all we need to know the average amount of procs we can expect from 1 riptide.
Assuming 8 ticks for RT.
0,4 * 8 ~ 3,2 proc.
Then, the amount of mana per 1 second we get.
mp1 = 3.2 * (Base mana) / 21 =~ 35.7 mp1
Now, knowing that 1 8xtick riptide grants us 35.7 mp1 mana on average we can start simulation.
0-6 sec. of battle = 1x riptide
6-12 sec. of battle = 2x riptide
12- 18 sec. of battle = 3x riptide
18 - 21 sec. of battle = 4x riptide (ideal conditions)
21-24 sec. of battle = 3x riptide
24-27 sec. of battle = 4x riptide
and so on...
As you can see, the only problem in counting mana returns is the first 18s of a fight. Now, let's do the maths
0-6 s. of battle = mp1 * 6 seconds = 214.2 mana.
6-12 s. of battle = mp1 * 6 seconds * 2 riptides = 428.4 mana
12-18 s. of battle = mp1 * 6 seconds * 3 riptides = 642.6 mana
After 18s of battle, mana restored on average equals to 1285.2.
Now for the cycle after 18s. As shown above, every 3s (or half of the time) we will have 4 riptides up. (ideal conditions) So, mp1 of the rest of the fight will be
35.7 * ((3+4) / 2 (amount of riptides)) = 35.7 * 3.5 = 125 mp1
Now, assuming 5 min fight we get
1285.2 mana + (125 mp1 * (300 s - 18s)) = 1285.2 mana + 125 mp1 * 282s = 1285.2 mana + 35250 mana = 36535.2 mana
Now, final mp5 calculation
mp5 = 36535.2 / 60 = 608.7 mp5.
This also shows, that haste also benefits our mana regeneration (more riptide ticks, higher chance of proc. not to mention faster heales for frequent resurgence proc.).
In conclusion, during 5 min fight, under ideal conditions, our 2pT12 restores on average 36535.2 mana.