function calculateOIC() {
var monthlyIncome = document.getElementById('monthlyIncome').value;
var monthlyExpenses = document.getElementById('monthlyExpenses').value;
var assetEquity = document.getElementById('assetEquity').value;
var totalTaxOwed = document.getElementById('totalTaxOwed').value;
var disposableIncome = monthlyIncome - monthlyExpenses;
var RCP;
if (disposableIncome * 12 < totalTaxOwed) {
RCP = (disposableIncome * 24) + parseFloat(assetEquity);
} else {
RCP = (disposableIncome * 12) + parseFloat(assetEquity);
}
if (RCP < totalTaxOwed) {
document.getElementById('result').innerHTML = "Based on the information provided, you may qualify for an Offer in Compromise.";
} else {
document.getElementById('result').innerHTML = "Based on the information provided, you may not qualify for an Offer in Compromise.";
}
}