def compute_loss_packet_count(overall_packets, lost_packets):
    """
    Compute loss percentage based on the number of lost packets and the number of overal packets.
    """

    if overall_packets != 0:
        loss = (lost_packets / overall_packets)*100
    else:
        return 100

    return loss if loss >=0 else 0