building application calculations