Does it have any value getting a PhD in engineering after 45?
You can answer this with salary survey data.  Based on the data, it would be reasonable to assume a CS academic would earn $95,000/year a few years after their PhD.  This would rapidly make up for any lost earnings from not driving a taxi during a PhD, so we can determine that the answer is yes without figuring out the taxi driver's earnings or the PhD stipend.