Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MOUP/MOUP/Presentation/Home/ViewModel/HomeViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ final class HomeViewModel {
let dayWorkHour: Double = Double(workMinutes.dayMinutes) / 60.0
let nightWorkHour: Double = Double(workMinutes.nightMinutes) / 60.0
let beforeInsuranceAmount: Int =
Int((dayWorkHour * wage) + (nightWorkHour * (wage * 1.5)))
Int((dayWorkHour * wage) + (nightWorkHour * (wage * nightRate)))
let result = PayrollCalculator.shared.calculatePay(grossPay: beforeInsuranceAmount, settings: insuranceSettings)
totalEmploymentInsurancePay += result.employmentInsurance
totalHealthInsurancePay += result.healthInsurance
Expand Down