According to the UKBA information she can apply 28 days before the end of the qualifying period (5 years) for ILR. (That may or may not be same as visa expiration )