As far as I know, you are allowed to take the ATP ride with a expired written if you are employed by a 121 or 135 carrier (not including on demand). How about if you work for a company and do scheduled runs on some days and on demand others. Or if the company does both on demand and scheduled runs and you have done both in your career with the company? Can you still use the expired ATP written?