If you play music at a moderate volume, the battery in your Beoplay H4 2nd Gen can provide up to 19 hours of playback.
In general, battery life depends on volume, music intensity, and equaliser settings. This means that the battery drains faster at a higher volume when playing higher intensity music like rock or heavy metal.