Coupling an energy storage to a photovoltaic (PV) system not only increases the self-consumption but also solves the over-voltage issues if the cycling of the storage is properly controlled. Whatever the application the storage is used for, the primary concern of the system owner is to maximize the profits. Therefore, this paper addresses an energy management system for a PV system coupled with battery energy storage, which maximizes the daily economic benefits while curtailing the power injection to the grid in such a way that helps to mitigate over-voltage problems caused by reverse power flow. A time dependent grid feed-in limit is proposed achieve this objective. The daily operational cost that includes the energy cost and the battery degradation cost is considered as the objective function. The non-linear constrained optimization problem is solved using dynamic programming. The analyses are made to investigate the economic benefits of charging the battery from the grid. It is found that there is a possibility for these systems for participating in load-levelling if batteries are charged from the PV system. In order for that to be feasible, the peak-hour sell-back price for the energy from storage should be higher than the off-peak utility electricity price.