Time, in hours (H), equals average solar kilowatt hours per month (K), multiplied by the price of one kilowatt hour (P), divided by the total cost (C) of all the purchased components.
H = (K * P) / C
So you're dividing the average saving per month by the total cost and expecting to get hours?
If we generously estimate a very high 3000kWh/month generated and high $0.40/kWh price and it cost OP $9000, then you formula is (3000×0.40)/9000 = 0.133 hours.
Breaking even after less than 1 hour?!??! Extraordinary!