Calculations of DNA Condensation Caused by Ligand Adsorption