How many days were there from 1st January to 31st March, 2012?

30 + 29 + 30
= 89

Aren't there 31 days both in January and March?

Yes, there is 31 days in both so... it would be.

31 + 31 + 29 = 91

To calculate the number of days from 1st January to 31st March, 2012, we need to add the number of days in January, February, and March.

January has 31 days.
February has either 28 or 29 days, depending on whether it is a leap year or not. In 2012, it was a leap year, so February had 29 days.
March has 31 days.

To calculate the total number of days, we add those three numbers: 31 + 29 + 31 = 91.

Therefore, from 1st January to 31st March, 2012, there were 91 days, not 89 as you initially calculated.