Proactive charging with variable energy prices