def loss_amount(actual_cost, sale_amount):
    return actual_cost - sale_amount if sale_amount < actual_cost else None