removed fnCalculateEnd reference