investments for more than the remaining amount

Signed-off-by: Vladimir Vidinliev <v.vidinliev@gmail.com>