The Two-sex problem in populations structured by remaining years of life