Add loss calculation methods