Stephen has a landscaping job. He agreed to take the job for $1200. However, due to excessive rain, he took an extra 3 days longer than he planned to complete the job, and his daily earnings were $90 less than expected. How many days did Stephen take to complete the work?