The lasting of battery depends on how intensive do you use your phone. But also the phone's settings have impact on battery lasting.
Installation and usage of more applications increase the usage of CPU. Applications may using CPU or mobile data even when running in the background. The higher CPU usage means higher battery usage.
To extend the lasting of battery, you have to apply some battery saving practices. For example, by appling some battery saving settings, your battery should last longer.