Actually the Air Force has already said it is flying till 2040 or 2045. One date is for the BUFF and the other is for the 135/707 special mission aircraft, but I always forget which is which.
According to current Air Force projections, the last of the B-52s will be in service after the B-2 fleet is retired. Amazing.