Skip to main content

Polish salary calculator

Project description

Polish Salary Calculator

A precise and configurable salary calculator for the Polish tax and social contribution system. The library supports multiple contract types, including Employment, Mandate, Work Contract, and Self-Employment, with full control over contribution rates, cost deductions, and tax configuration.

This library is intended for:

  • HR systems
  • Payroll automation tools
  • Business and accounting applications
  • Financial simulations and benchmarking

All monetary calculations use Decimal for accuracy.

Features

  • Employment Contract (Umowa o pracę)
  • Mandate Contract (Umowa zlecenie)
  • Work Contract (Umowa o dzieło)
  • Self-Employment (B2B) including lump-sum, linear tax, and more
  • Yearly salary summary and month-by-month adjustment
  • Contract-to-contract cost comparison
  • Export to Excel, CSV, JSON, and Pandas DataFrame
  • Builder-based configuration interface

Installation

pip install polish-salary-calc

Basic Example

from decimal import Decimal
from polish_salary_calc.rates.rates import Rates
from polish_salary_calc.contracts.employment_contract import EmploymentContract
from polish_salary_calc.contract_settings.employment_contract_settings import EmploymentContractSettings
from polish_salary_calc.contracts.base_contract import SalaryType

rates = Rates()

settings = (
    EmploymentContractSettings().builder()
    .is_increased_costs(True)
    .build()
)

contract = EmploymentContract(rates, settings)
contract.calculate(Decimal("7000"), SalaryType.GROSS)

print(contract)

Year Summary Example

from polish_salary_calc.summary.contract_summary import YearContractSummary
year_summary = YearContractSummary(rates, settings, Decimal("8000"), SalaryType.NET)
year_summary.calculate()
print(year_summary)

Export

contract.to_excel("contract.xlsx")
year_summary.to_json("summary.json")

Python Version Requirement

Python 3.9+

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

polish_salary_calc-0.1.2.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polish_salary_calc-0.1.2-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file polish_salary_calc-0.1.2.tar.gz.

File metadata

  • Download URL: polish_salary_calc-0.1.2.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.5 Windows/11

File hashes

Hashes for polish_salary_calc-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c0113665799631b5726b47400fa621890087c8141c4449ac9bdcb4f635073c1d
MD5 53e3acd70783e73030fce63ac12ade72
BLAKE2b-256 ee1d77d178211a62cedba22fd07ad7daa785e77f576e2e39c98c8c101af3fb67

See more details on using hashes here.

File details

Details for the file polish_salary_calc-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for polish_salary_calc-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 918630a5c8de8dbefd0b45727fb0476bb7d43bf3777eb8b4994d9d4c1dab27ac
MD5 82cf0aa8a844f3fbb5a222f50f8b7150
BLAKE2b-256 fa5f4872e7a3a03fe5ba2681e23af313b9f81fdff5564591f722c50764d31e2b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page