While I'm not older than 40, there are quite a few people in my Master's program who are. I'm in the OMSCS program at Georgia Tech, Online Maters in Computer Science (https://omscs.gatech.edu/). It's exactly as it sounds, a 10 course Master's degree from Georgia tech that you can get from your own home. That is not to say that it's like a MOOC you might take on Coursera randomly, it's a full Master's program where you need to complete the same assignments as any on-campus student. It's not easy, one will easily spend 20+ hours a week studying or working on projects/homework.
Further on the plus side, it's only ~$6400 for the entire degree and you can take just one course at a time.
Further on the plus side, it's only ~$6400 for the entire degree and you can take just one course at a time.