"I spent maybe 2 hours working on it and it works perfectly!"
As long as it works perfectly for longer than two hours, I think you're in the clear.