How long will star formation endure before the eventual heat death of the observable universe?
This is actually very well researched. Wikipedia has quite a good summary, stelliferous era ends after about $10^{14}$ years, assuming an expanding universe.