Completed age_of_file funtion