$(‘#number_of_compressors_input’).number(true, 2);
$(‘#average_annual_operating_hours_input’).number(true, 2);
$(‘#current_oil_drain_interval_input’).number(true, 2);
$(‘#proposed_oil_drain_interval_input’).number(true, 2);
$(‘#average_oil_capacity_input’).number(true, 2);
$(‘#current_compressor_oil_cost_input’).number(true, 2);
$(‘#est_mobil_compressor_oil_cost_input’).number(true, 2);
$(‘#est_mobil_flush_oil_cost_input’).number(true, 2);
$(‘#number_of_flushes_input’).number(true, 2);
$(‘#labor_cost_input’).number(true, 2);
$(‘#out_of_service_downtime_input’).number(true, 2);
$(‘#used_oil_removal_cost_input’).number(true, 2);
$(‘#approximate_compressed_air_cost_input’).number(true, 2);
$(‘#signum_oil_sample_cost_input’).number(true, 2);

function calculateIt() {
var number_of_compressors = parseFloat($(‘#number_of_compressors_input’).val().split(‘,’).join(”));
var average_annual_operating_hours = parseFloat($(‘#average_annual_operating_hours_input’).val().split(‘,’).join(”));
var current_oil_drain_interval = parseFloat($(‘#current_oil_drain_interval_input’).val().split(‘,’).join(”));
var proposed_oil_drain_interval = parseFloat($(‘#proposed_oil_drain_interval_input’).val().split(‘,’).join(”));
var average_oil_capacity = parseFloat($(‘#average_oil_capacity_input’).val().split(‘,’).join(”));
var current_compressor_oil_cost = parseFloat($(‘#current_compressor_oil_cost_input’).val().split(‘,’).join(”));
var est_mobil_compressor_oil_cost = parseFloat($(‘#est_mobil_compressor_oil_cost_input’).val().split(‘,’).join(”));
var est_mobil_flush_oil_cost = parseFloat($(‘#est_mobil_flush_oil_cost_input’).val().split(‘,’).join(”));
var number_of_flushes = parseFloat($(‘#number_of_flushes_input’).val().split(‘,’).join(”));
var labor_cost = parseFloat($(‘#labor_cost_input’).val().split(‘,’).join(”));
var out_of_service_downtime = parseFloat($(‘#out_of_service_downtime_input’).val().split(‘,’).join(”));
var used_oil_removal_cost = parseFloat($(‘#used_oil_removal_cost_input’).val().split(‘,’).join(”));
var approximate_compressed_air_cost = parseFloat($(‘#approximate_compressed_air_cost_input’).val().split(‘,’).join(”));
var signum_oil_sample_cost = parseFloat($(‘#signum_oil_sample_cost_input’).val().split(‘,’).join(”));
var extended_oil_drain_savings =((((number_of_compressors * average_annual_operating_hours) / current_oil_drain_interval) * average_oil_capacity * current_compressor_oil_cost) – (((number_of_compressors * average_annual_operating_hours) / proposed_oil_drain_interval) * average_oil_capacity * est_mobil_compressor_oil_cost));
$(‘#extended_oil_drain_savings_output’).html(extended_oil_drain_savings).formatCurrency();
var labor_savings = (((number_of_compressors * average_annual_operating_hours) / current_oil_drain_interval) – ((number_of_compressors * average_annual_operating_hours) / proposed_oil_drain_interval)) * labor_cost * out_of_service_downtime;
$(‘#labor_savings_output’).html(labor_savings).formatCurrency();
var used_oil_removal_savings = ((((number_of_compressors * average_annual_operating_hours) / current_oil_drain_interval) * average_oil_capacity) – (((number_of_compressors * average_annual_operating_hours) / proposed_oil_drain_interval) * average_oil_capacity)) * used_oil_removal_cost;
$(‘#used_oil_removal_savings_output’).html(used_oil_removal_savings).formatCurrency();
var mobil_certified_flush = number_of_compressors * average_oil_capacity * number_of_flushes * est_mobil_flush_oil_cost * -1;
$(‘#mobil_certified_flush_output’).html(mobil_certified_flush).formatCurrency();
var quarterly_signum_oil_analysis = number_of_compressors * 4 * signum_oil_sample_cost * -1;
$(‘#quarterly_signum_oil_analysis_output’).html(quarterly_signum_oil_analysis).formatCurrency();
var first_year_savings = extended_oil_drain_savings + labor_savings + used_oil_removal_savings + mobil_certified_flush + quarterly_signum_oil_analysis;
$(‘#first_year_savings_output’).html(first_year_savings).formatCurrency();
var annual_savings = extended_oil_drain_savings + labor_savings + used_oil_removal_savings + quarterly_signum_oil_analysis;
$(‘#annual_savings_output’).html(annual_savings).formatCurrency();
$(‘#myscriptOutputContainerDiv’).show();
return;
}


Compressor(s)

Hours

Hours

Hours

Gallons

$per Gallon

$per Gallon

$per Gallon

Flushes

$per Hour

Hours

$per Gallon

$per MCF

$per Sample

Summary of Savings

Extended Oil Drain Savings
Labor Savings
Used Oil Removal Savings
Mobil Certified Flush (One Time Only)
Eliminate Lube Supplier (Inventory and Purchase Savings)
$0.00
Quarterly Signum Oil Analysis
First Year Savings

*

Annual Savings (After First Year)
* A negative number indicates one year conversion cost