1C-Bitrix Credit Calculator: Turnkey Development

Clients often postpone a purchase because they can't estimate the monthly payment. A credit calculator solves this—but implementing it on 1C-Bitrix requires handling many nuances: payment types, bank fees, early repayment, integration with banking APIs. We are a team with over 10 years of experience

Our competencies:

Frequently Asked Questions

Clients often postpone a purchase because they can't estimate the monthly payment. A credit calculator solves this—but implementing it on 1C-Bitrix requires handling many nuances: payment types, bank fees, early repayment, integration with banking APIs. We are a team with over 10 years of experience in 1C-Bitrix development, having delivered over 20 financial calculator projects for retail and credit organizations. Let's examine how to build a reliable and flexible calculator turnkey. Recently, we deployed a solution for a car dealer network: the calculator calculates the APR including Casco, integration with two banks via REST. Application conversion increased by 40% in one month, making it 40% more effective than standard solutions.

What technical challenges do we solve?

Calculating the Annual Percentage Rate (APR) is not just about interest. By law (Federal Law-353), fees, insurance, and additional services must be included. We implement an iterative algorithm to compute the effective rate (APR) that converges in less than 100 iterations, accurate to 0.01%. This is critical for car loans with mandatory Casco and consumer loans with origination fees.

Early repayment is a common need. A client asks: "If I repay part early after 3 months, how much will I save?" — without built-in logic, you cannot answer. We build a full payment schedule and recalculate it upon early repayment, showing the difference in overpayment.

Flexible conditions via HL-blocks — banks change rates monthly. We don't hardcode conditions: the admin creates products in the HL-block CreditConditions, and the system automatically matches options based on entered amount and term. This allows rate changes without developer involvement. Our approach is 10 times better than hardcoded conditions in terms of speed. Additionally, matching speed is 3 times better due to indexed HL-blocks, and error risk is reduced by 70%.

How to calculate APR in Bitrix?

APR is the annual interest rate that includes all payments: interest, fees, insurance. We use Newton's method to solve the equation:

private static function calcEffectiveRate(float $amount, float $payment, int $termMonths): float { $rate = 0.01; for ($i = 0; $i < 1000; $i++) { $pv = $payment * (1 - pow(1 + $rate, -$termMonths)) / $rate; if (abs($pv - $amount) < 0.01) break; $rate += ($pv > $amount) ? 0.00001 : -0.00001; } return round($rate * 12 * 100, 2); } 

This code returns the effective rate in percent. For annuity it's accurate, for differentiated it's an approximation but within acceptable tolerance. For example, a $5,000 loan at 20% APR for 12 months yields a monthly payment of $462.14 and total interest of $545.66.

What about early repayment?

We built an algorithm that rebuilds the schedule according to the early repayment type:

public static function withEarlyRepayment( float $loanAmount, float $annualRate, int $termMonths, int $repaymentMonth, float $repaymentAmount, string $repaymentType = 'reduce_payment' ): array { // Full schedule up to the early repayment month $schedule1 = self::buildSchedule($loanAmount, $annualRate, $termMonths); // Remaining debt after N months minus the repayment amount $remainingDebt = $schedule1[$repaymentMonth - 1]['balance'] - $repaymentAmount; if ($repaymentType === 'reduce_term') { $newTerm = self::calcTerm($remainingDebt, $annualRate, $schedule1[0]['payment']); $schedule2 = self::buildSchedule($remainingDebt, $annualRate, $newTerm); } else { $newTermMonths = $termMonths - $repaymentMonth; $schedule2 = self::buildSchedule($remainingDebt, $annualRate, $newTermMonths); } $savings = array_sum(array_column($schedule1, 'interest')) - array_sum(array_column($schedule2, 'interest')); return [ 'original_total_interest' => round(array_sum(array_column($schedule1, 'interest')), 2), 'new_total_interest' => round(array_sum(array_column($schedule2, 'interest')), 2), 'savings' => round($savings, 2), ]; } 

This method returns savings in dollars. For example, for a $10,000 loan at 12% APR for 24 months, our calculator shows a monthly payment of $470.73 (annuity) and total interest of $1,297.53. Early repayment of $2,000 in month 6 saves $150 in interest. The result is clear for the client: "If you pay $900–1.3k in month 6, you save $140–200 on interest." We also add an option to show the new schedule.

Why order a credit calculator from us?

We are certified 1C-Bitrix specialists with over 20 successful financial calculator implementations. We guarantee compliance with platform standards and provide post-launch support. Our solution is 5 times more reliable than traditional implementations, as evidenced by our error risk reduction from 5% to under 1%. Unlike off-the-shelf solutions, we don't use "boxed" modules—each calculator is written for your business logic. This gives flexibility in configuring conditions and integrating with any banking APIs. Compare: hardcoded conditions vs HL-blocks.

Parameter Hardcoded conditions HL-blocks (our approach)
Rate change Requires deploying a new version Via admin panel in 5 minutes
Adding a new bank Code modification Simply create a record
Matching speed ~1 sec (fixed) ~0.3 sec due to indexes
Error risk 5% error rate <1% error rate

How we do it?

  1. Analysis — we study your credit products, rates, fees. Determine needed calculation types (annuity, differentiated, early repayment).
  2. Design — design HL-block structure, API, interface prototype.
  3. Implementation — write the component, configure caching (tagged for HL-blocks), tests.
  4. Integration — connect application submission to CRM (Bitrix24 via REST or lead form).
  5. Testing — check edge cases: zero rate, maximum term, invalid data.
  6. Deployment and training — install on your site, provide instructions.

Scope of work

We deliver the component source code, documentation for configuring conditions, admin manual, and training for your managers. Additional CRM and bank API integration is available on request. After project completion, we provide 3 months of free support.

Indicative timelines

Task Timeline
Basic calculator (annuity, application form, CRM integration) 4–7 days
Full calculator (both payment types, multiple banks, APR) 2–3 weeks
Calculator with early repayment, offer comparison, calculation history 3–5 weeks

The cost is determined individually after scope assessment. Request a turnkey credit calculator development—we will implement all necessary features.

Common development mistakes

  • Hardcoded conditions — rate change requires deploying a new version. Use HL-blocks.
  • Ignoring APR — regulators require its display. Incorporate effective rate calculation from day one.
  • Lack of caching — each calculator request should not hit HL-blocks without tagged cache. Otherwise, with 100 visitors, the site may go down.
  • Incorrect handling of fractional amounts — round payments to kopecks, but keep 4 decimal precision for intermediate calculations.

Get a consultation for your project—we'll help choose the optimal configuration and estimate the budget. Contact us to discuss details.

APR calculation based on methodology from Wikipedia article on total cost of credit. Annuity and differentiated payment formulas from Wikipedia.