*2.4. Grid*

By using (3), the power absorbed or supplied by the grid can be calculated [40]:

$$P\_{\mathcal{S}}(t) = P\_l(t) + \sum (P\_{pv}(t), P\_b(t))\tag{9}$$

where grid supplied/absorbed is *Pg*, load power is *P<sup>l</sup>* , battery power is *P<sup>b</sup>* , and PV power is *Ppv.*
