x-Ray absorption calculator