select datediff(mi,beginacst,endacst) *rent from tablename where.....