X-Ray absorption calculator