Made function to evaluate a profile at a given time.