How do I compute income from a property which is self-occupied for part of the year and let out for part of the year?

How do I compute income from a property which is self-occupied for part of the year and let out for part of the year?

 

Such a property will be treated as been let-out throughout the year and income will be computed accordingly. However, while computing the taxable income in case of such a property, actual rent will be considered only for the let-out period.