Revised CalcCaOnsets inputs

Removed unnecessary time variable.
Added code to separate into control/experiment wells
Added necessary functions from other libraries