App-FinanceUtils

 view release on metacpan or  search on metacpan

script/calc-fv-future-value  view on Meta::CPAN

#!perl

# Note: This script is a CLI for Riap function /App/FinanceUtils/calc_fv_future_value
# and generated automatically using Perinci::CmdLine::Gen version 0.491

our $DATE = '2019-11-29'; # DATE
our $DIST = 'App-FinanceUtils'; # DIST
our $VERSION = '0.003'; # VERSION

use 5.010001;
use strict;
use warnings;

use Perinci::CmdLine::Any;

my $cmdline = Perinci::CmdLine::Any->new(
    url => "/App/FinanceUtils/calc_fv_future_value",
    program_name => "calc-fv-future-value",
);

$cmdline->run;

# ABSTRACT: Calculate future value (fv) from present value (pv), return rate (r), and periods (n)
# PODNAME: calc-fv-future-value

__END__

=pod

=encoding UTF-8

=head1 NAME

calc-fv-future-value - Calculate future value (fv) from present value (pv), return rate (r), and periods (n)

=head1 VERSION

This document describes version 0.003 of calc-fv-future-value (from Perl distribution App-FinanceUtils), released on 2019-11-29.

=head1 SYNOPSIS

Usage:

 % calc-fv-future-value [options] <pv> <r> <n>

Examples:

Invest $100 at 6% annual return rate for 5 years:

 % calc-fv-future-value 100 0.06 5
 133.82255776

Ditto, using percentage notation on command-line:

 % calc-fv-future-value 100 6% 5
 133.82255776

=head1 DESCRIPTION

Formula is:

 fv = pv*(1+r)**n

=head1 OPTIONS

C<*> marks required options.

=head2 Main options

=over

=item B<--pv>=I<s>*

present value.

=item B<-n>=I<s>*

Number of periods.

=item B<-r>=I<s>*

Return rate (e.g. 0.06 for 6%).

=back

=head2 Configuration options

=over

=item B<--config-path>=I<s>, B<-c>

Set path to configuration file.

=item B<--config-profile>=I<s>, B<-P>

Set configuration profile to use.

=item B<--no-config>, B<-C>

Do not use any configuration file.

=back

=head2 Environment options

=over

=item B<--no-env>

Do not read environment for default options.

=back



( run in 1.667 second using v1.01-cache-2.11-cpan-39bf76dae61 )