def compute_result(droprate_dict,multiplier_dict,TPCut):
    """This is very straightforward so not much is needed to explain here.
    1) Decide is the TP cut is required during calculation
    2) Determine the value per raw material in each salvage item given item droprate and item value
    3) Determine the sum of the salvage item
    4) Return a dictionary of the raw material values in the salvage item and the value of the salvage item
    """
    salvageValue_dct = {}
    sum_val = 0
    if TPCut == True:
        TPValue = 0.85
    else:
        TPValue = 1

    for key in droprate_dict:
        salvageValue_dct[key] = round(TPValue*droprate_dict[key]*multiplier_dict[key],4)
        sum_val = sum_val + salvageValue_dct[key]

    return salvageValue_dct,sum_val