When questioning if something is worth it, this phrase might come to mind.
I want to study all night, but is the hike worth the view?