How do i calculate entry total