Cost eaten math computed and insert with log stat