In your case, the system doesnt need to know when the "Grid idling Time" start.
Instead, the algorithm will estimate precisly the charge duration, from your current SOC, max input from your connector under charge config (e.g you manually cap the charge current), and perhaps battery states. You...