Find nontrivial (not constant zero) real functions $P$ of two arguments (or prove that there is no such function), such that
$$ P (T, s) = \int_T^{T + s} P (x, \mathrm{d} x) $$ where by definition $$ \int_T^{T + s} P (x, \mathrm{d} x) = \lim_{N \rightarrow + \infty} \sum_{i = 0}^{N - 1} P \left( T + \frac{i s}{N}, \frac{s}{N} \right). $$
You can assume that $P$ is continuous and otherwise well behaves.
$T$ is always nonnegative and $s$ is always positive. $P$ is nonnegative.
(I prefer not to disclose the details of where I get this problem from. It is from economics. But I can say that you'll help to the world if you find this function.)
Another (possibly simpler) variant of this problem: Find $P$ such that $$P(T,a+b) = P(T,a) + P(T+a,b)$$ for nonnegative $T$ and positive $a$, $b$.
One of the solutions is $P(T,s) = k s$ (where $k=\mathrm{const}$). This solution does not fit into the actual problem domain. Are there other solutions?