See my thread Determining Exposure Time.