checking expiring date by filectime and filemtime