Britain and the US really industrialized in the mid 1800s ( although britain loves to pretend it did in the 1700s ). Parts of europe followed soon after. Japan industrialized in the late 1800s. India ( and china ) industrialized after ww2 - india much more slowly than china due to its democratic and bureaucratic baggage. For more than 100 years, india was prevented from industrializing by britain. You can't ignore that significant opportunity cost.
Also, you are wrong when you say colonial "adventure" had nothing to do with industrialization. Excess capital and excess resources are the prerequisites for national industrialization. British industrialization was funded by opium money from china and resources from india. The need for resources is why japan and germany sought to create empires for themselves. It was a necessity to industrialize.
Having said that, I don't think you can honestly calculate the costs of colonization because there are so many factors involved. Would india have been able to follow meiji japan's or even mao's china's example and industrialize? We can say that india lost a lot due to british imperialism, but I doubt we'll ever know exactly how much. At best, it's just a guess.
But something like pre-1850s hermit kingdom Japan is another possibility. And the hermit kingdon's share of the world's pie would have declined greatly, too, with nobody to blame.
Certainly lots of cotton mills got built in the late 19th C, in both Japan and India, and all using the same off-the-shelf technology, and often the same capital. There's lots of interesting detailed work comparing them, and tracking things over the decades. And while I'm not an expert, I don't think it supports any very simple ideas of good guys / bad guys.
For example, here's a link: https://pseudoerasmus.com/2017/10/02/ijd/
Japan is a bit of an aberration. It was the only non-western country to industrialize early.
Now, India might have done so also, had it somehow avoided industrialization yet maintained contact with industrializing countries. But, a counterpoint to this is that India basically didn't industrialize after independence either. Only when the "License Raj" was done away with several decades later did India start to grow quickly. (In other words, mere absensce of colonization was not sufficient for growth)
British went their for cheap raw material, cheap labour, and cannon fodder soldiers.
I don't know why people try to use these crazy discount factors on such long time horizons. I feel like it should be pretty easy. The currency of the time was in precious metals. So, we can just revalue the gold and silver in kilos from 1700 in dollars for 2018.
1) The 5% return that produced the $45T figure is significantly higher than the expected return on capital for the vast majority of that period(which includes risk and is not comparable to modern returns). Furthermore, there would be no place to put that money to try to extract that return. The notion that the 18th century even had a safe positive return on capital for large periods of time for proto-investors is dubious to say the least.
2) The timeline doesn't fit for claiming that colonial India dramatically benefited the imperial center or periphery. The UK was industrializing and ahead of the rest of Europe before revenues from India are supposed to have made a difference yet fell behind countries like Germany(which lacked any colonies until the late 19th century) even as revenues from India were supposedly diverted. The periphery is no better, Canada and Australia fell behind the US even with the supposed surplus from India.
3) I'm skeptical that diverted taxes from a mostly agricultural society like India could have produced the bonanza suggested in this article. Existing Per capita taxes would have been onerous enough and not much more could have been meaningfully extracted from the peasantry. A pre-modern society has enough problems with basic economic management and political stability; sustaining a massive bureaucracy necessary to collect taxes without rents diverted to local elites doesn't make a lot of sense.
4) As an addendum to (3) the early East India Company lacked the ability to even administer the country without the cooperation of elites(which required the dispersal of rents). The later imperial bureaucracy necessary to administer India was by all accounts quite expensive. There just isn't the gigantic return form skimming off taxes that is suggested in the article.