An explicit formula for the probability of nonruin of an insurance company in a finite time interval is derived, assuming Poisson claim arrivals, any continuous joint distribution of the claim amounts and any nonnegative, increasing real function representing its premium income. The formula is compact and expresses the nonruin probability in terms of Appell polynomials. An example, illustrating its numerical convenience, is also given in the case of inverted Dirichlet-distributed claims and a linearly increasing premium-income function.