* Numeric display of the ROIC number is now always displayed to 2 decimal places. The graph was always correct, but previously TradingView would occasionally display only a whole number.
* The EBIT calculation has been improved to synthesize data over the past four quarters. A bug in PineScript requires manually calculating this. Previous versions of this study computed this using in imprecise heuristic that has been replaced with a proper computation so the EBIT half of the ratio is now actually correct rather that approximately correct.
* The study now works for corporations that report annually. PineScript has no feature to get the most recent balance sheet value, so I hacked this up for all values as many companies outside the US report only annually.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.