This ROI calculator looks reasonable: https://ukcalculator.com/solar-panel-roi-calculator.html - note that it subtracts the install cost for you, so any case where the final figure is positive is profitable. But of course that depends on whether grid prices go up or down in the next decade ...