Knowing the late stages of the stellar evolution is crucial for understanding the fate of planets around subdwarfs and white dwarfs. Simulations by (Staff et al.2016) show, that exoplanets engulfed in the extending stellar envelope will quickly spiral down onto the parent star. Therefore, we do not expect to find planets on close by orbits to the subdwarfs (Blokesz et al.2019) or white dwarfs. However, the recent observation of planetary debris around WD 1145+017 white dwarf suggests, there might exists planets farther away from these stars. Using binarograms, O-C diagrams and Fourier transform for the Kepler space telescope data, we investigate a problem of missing planets around white dwarfs in binary systems, single white dwarfs and subdwarfs type B. The last ones, being the only stars which (due to the lack of hydrogen) go directly to the white dwarf cooling track after their red giant phase.