On some boundary-value problems for second order PDEs arising in Finance