The seven years must be continuous, and you must have spent the whole of the last twelve months before applying in Kenya. Your permits and passport stamps show the dates.