There are no required number of days to be in the UK for ILR, you just have to show you have lived with your spouse for the entire length of the spousal visas (doesn't have to be in the UK for the whole time, but you need to be able to show evidence that you were living in the same property as each other, by way of mail addressed to you).
For citizenship, if you are married to a UK citizen, you have to show that:
1) you were physically inside the UK exactly 3 years prior to your citizenship application date
2) you have not been outside the UK for more than 270 days in the previous 3 years before applying for citizenship, with not more than 90 of those days in the final 12 months.
You only count full days outside the UK, and not the day you leave or come back - so say you left on Monday and returned on Friday, that only counts as 3 days.
If you can't meet the requirements right away, you just have to wait to apply until you do meet them.
Sent from my iPod using Tapatalk