finance calculation

see the attachement