Life on this planet has 1 more billion years to go on before the Sun gets a tad to hot to the point Earth will become a bit like Venus with a super green House effect. Even then some resistant microbia and bacteria might resist a little longer. As for the lifetime of the planet itself it is expected somewhere more 4 or 5 billiln years before its engulfed by the red old giant Sun and consumed.
The universe will last a lot longer with the latest Stars dying being the brown dwarfs with a life expectency being hundreds of thousand times bigger then a normal Star and still a great deal bigger then red dwarfs. Nonetheless eventually as so called negative energy or dark energy pulls the galaxies apart n they gain speed all matter even free rooming inter galacting rogue planets and other objects will eventually desintegrate at the speed of light n become just pure energy. The last thing left will be virtual pairs of particles like those described in Hawkings radiation that form spontaneously out of the quantum foam energy in space itself. Whatever happens trillions of years from now at that point is a nice subject for statistic analisis and probabilities, this making faith energy itself is undestructible....probably given enough time a new "rubic's cube" will form another big bang as eventually energy fluctuation densities here and there will come out of an equilibrium n maybe form a super cluster of new matter or whatever (at this point we are largely expeculating). Eventually so long there is something moving in a medium some sort of space everything will vary all possible combinations of arrangements of atoms including the repeating of our own "ARCHETYPES" which therefore are eternal in the realm of BEING. This being, this one super rubic's cube, this LOGOS is what naive people antropomorphise into the image of a God in their instinctive sense of UNIVERSAL UNITY.
(Writting from a mobile in a coffe shop, discount the numerous typos please)