Welcome to the Apple Support Communities!
The resource below will explain how to optimize the settings on your iPhone 7 to maximize the battery life. The "View Battery Usage" section will show you how to determine the proportion of your battery used by each app.
Maximizing Battery Life - Tips for iPhone, iPad, and iPod touch
Take care.