   end
 
   def actual_units_user(user, %{:data => %{"units" => units}} = event, %{"status" => "stopped"} = user_model, benchmark) do
-    units = normalize_units(event.data["units"])
+    units = normalize_units(units)
     users = length(event.data["users"])
     actual_units = units / users
     uph = actual_units / (user_model["active_seconds"] / 3600)

    }
  end

  def edit({:edit, event}, model, new_events ) when model == %{} do
    {model, new_events}
  end
  def edit({:edit, event}, model, new_events) do

  end


  def delete({:delete, _event}, model, new_events ) when model == %{} do
    {model, new_events}
  end
  def delete({:delete, event}, model, new_events) do
