add constant calculation