The maximum surplus before ruin in an Erlang(n) risk process and related problems · Study