public function elementEndPosition(){
        if($this->numberOfPages() == $this->currentPage){
            return $this->totalAmount - (1 - $this->startPosition);
        }else{
            return $this->elementStartPosition() + $this->amountPerPage - 1;
        }
    }