How is the commission for Distributor calculated?

Open res. report->values: net->mode:totals->origin:distributor->filter: in house. 

The commission (see contract) is calculated from total amount in "nights in interval".