How to measure the absorbance of a sample