Maximize Solar Energy: Unlocking Battery Storage Potential