The idler

Ram Rakhan was well-known all around his neighbourhood for being a very lazy person. So when he went around looking for a job as a farm-hand everyone refused to engage him, except farmer Gulab Singh, who was a very smart person. Gulab Singh engaged the services of Ram Rakhan at a salary of $240 a month consisting of thirty days. However, he set a condition that he would forfeit $10 a day for everyday that he idled. Ram Rakhan accepted the job. At the end of the month it was found that neither owed the other anything. This taught a lesson to Ram Rakhan. Can you tell just how many days Ram Rakhan worked and how many days he idled?