Calculate the recommended sleep duration by age and find the optimal bedtime or wake-up time based on sleep cycles.