Luminosity functions for different ages and metallicities