A agreed to erect a plant for B by 31st January. The contract stipulated Rs.500 per month damages from A for delay in his work. A was late by six months for shortage of materials. B sued A for Rs.10,000, towards loss caused to him as a result of the delay.