calculation in detail view

works